home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950726-19950929 / 000129_news@columbia.edu_Thu Aug 10 16:50:14 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA03190
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Thu, 10 Aug 1995 12:50:20 -0400
  3. Received: by apakabar.cc.columbia.edu id AA14711
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Thu, 10 Aug 1995 12:50:19 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: non-interactive screen capture
  9. Date: 10 Aug 1995 16:50:14 GMT
  10. Organization: Columbia University
  11. Lines: 32
  12. Message-Id: <40ddc6$ebf@apakabar.cc.columbia.edu>
  13. References: <DD25vA.tr@cs.dal.ca>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <DD25vA.tr@cs.dal.ca>,
  18. Luke Blaikie <blaikie@phys.ocean.dal.ca> wrote:
  19. >My problem is I want to automate a login to a remote machine (that
  20. >doesn't have kermit).  After connecting to this machine I type 'LIST'
  21. >and it prints out data to the screen for about a minute.  Then I want
  22. >to simply hang up.  
  23. >
  24. >Is it possible to capture (into a file) the information using a shell
  25. >script (UNIX machine) using kermit??  If not, any suggestions for a
  26. >simple solution??
  27. >
  28. Here is a simple solution that might work:
  29.  
  30.  1. Write the script that logs in and gets to the system prompt.
  31.  
  32.  2. OUTPUT LIST blah     ; where blah is the filename
  33.  
  34.  3. LOG SESSION blah.log ; Record in file blah.log
  35.  
  36.  4. OUTPUT \13           ; Start the LIST command
  37.  
  38.  4. INPUT 200 xxx        ; where xxx is the system prompt
  39.  
  40.  5. CLOSE SESSION
  41.  
  42. This should work if the listing doesn't take more than 200 seconds
  43. (if it does, use a bigger number) and if the system prompt does not
  44. occur in the file text (if it does, the active imagination can conjure
  45. up additional tricks to have the host display a unique string after
  46. the file is listed).
  47.  
  48. - Frank